package cn.formaggie.entity.model;

public class PageBean {

    private int index;

    private int pageSize;

    private int start;

    public PageBean(int index, int pageSize) {
        this.index = index;
        this.pageSize = pageSize;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStart() {
        return (index-1)*pageSize;
    }

}
